
<!DOCTYPE html>
<head>
 <link type="image/x-icon" href="../imagenes/pe.icon" rel="shortcut icon" /> 
	 <link type="image/x-icon" href="../../imagenes/pe.icon" rel="icon" />
<title>Rutas | BETRANS</title> 
<link href="ceGrid.css" rel="stylesheet" type="text/css">
<link href="main.css" rel="stylesheet" type="text/css">
<link href="bootrap.css" rel="stylesheet" type="text/css">
<meta charset="UTF-8">
</head>


<button type="button" class ="btn" id= "atras" onclick="javascript: location.href='../Menu.php'">Regresar</button>

<body>
<div id="content">
<h2 align="center">Modulo Gestion de Rutas</h2><br/>
<?php
error_reporting(0);
$host = "localhost";
$usuario ="root";
$clave = "root";

require 'dg/ceSQL.php';
require 'dg/ceGrid.php';

$dbase = new ceMySQLAdap($host,$usuario,$clave,"betrans");

$dg = new ceDataGrid($dbase); 

$dg->setQuery("BT07CORU,BT07DERU","bt07_rutas");

$dg->allowFilters();

$dg->showCreateButton("href='mt01.php'", ceDataGrid::TYPE_ONCLICK, 'Agregar');
$dg->setResultsPerPage(10);

$dg->setColumnHeader('BT07CORU', 'Codigo de Ruta');
$dg->setColumnHeader('BT07DERU', 'Nombre de Ruta');


$dg->addStandardControl(ceDataGrid::STDCTRL_EDIT, "href='mt02.php?id=%BT07CORU%'");
$dg->addStandardControl(ceDataGrid::STDCTRL_DELETE, "href='delete.php?id=%BT07CORU%'");

$dg->showReset("Refrescar");
$dg->printTable();
?>
</div>
</body>
</html>